import request from '@/utils/request'
export const getAddressList = id => request({
    url: `/v1/users/${id}/addresses`
})

// 获取所以城市列表
export const getAllCityList = params => request({
    url: '/v1/cities',
    params: {
        type: params
    }
})

// 搜索地址
export const searchAddress = params => request({
    url: "/v1/pois",
    params
})

export const getCurrentCity = () => request({
    url: "/v1/cities?type=guess"
})